package main

import (
	"encoding/json"
	"fmt"
	"time"
)

type HttpResponse struct {
	Error  interface{} `json:"error"`
	Result interface{} `json:"result"`
	Id     int64       `json:"id"`
}

var res = []byte(`{"error":null,"result":"werewr"}`)

func main() {
	var htt HttpResponse

	json.Unmarshal(res, &htt)
	if htt.Error != nil {
		fmt.Println("not nill")
	} else {
		fmt.Println(htt)
		fmt.Println("ww")
	}
}
